﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using YXShop.IDAL.Templates;
using YXShop.DALFactory;

namespace YXShop.BLL.Templates
{
    
    public class LabelType
    {
        private readonly ILabelType dal = DataAccess.CreateLabelType();
        /// <summary>
        /// 增加一条数据
        /// </summary>
        public int Add(YXShop.Model.Templates.LabelType model)
        {
            return dal.Add(model);
        }
        /// <summary>
        /// 更新一条数据
        /// </summary>
        public int Update(YXShop.Model.Templates.LabelType model)
        {
            return dal.Update(model);
        }
        /// <summary>
        /// 删除一条数据
        /// </summary>
        public int Delete(int id)
        {
            return dal.Delete(id);
        }
        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        public YXShop.Model.Templates.LabelType GetModel(int id)
        {
            return dal.GetModel(id);
        }
        /// <summary>
        /// 得到集合
        /// </summary>
        /// <returns></returns>
        public List<YXShop.Model.Templates.LabelType> GetAll()
        {
            return dal.GetAll();
        }
        /// <summary>
        /// 获得数据列表
        /// </summary>
        public ChangeHope.DataBase.DataByPage GetList()
        {
            return dal.GetList();
        }
    }
}
